package com.itheima.pinda.entity.user;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.itheima.pinda.entity.base.Entity;
import lombok.*;

import java.io.Serializable;

/**
 * 司机表
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "pd_truck_driver")
public class PdTruckDriver extends Entity implements Serializable {
    /**
     * 用户id，来自用户表
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 所属车队id
     */
    @TableField(value = "fleet_id")
    private String fleetId;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 图片
     */
    @TableField(value = "picture")
    private String picture;

    /**
     * 驾龄
     */
    @TableField(value = "driving_age")
    private Integer drivingAge;

}